<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-logic" prefix="logic"%>
<%@ taglib uri="/tags/core" prefix="c"%>
<%@ taglib uri="/tags/fmt" prefix="fmt"%>
<%@ taglib uri="/WEB-INF/tld/security.tld" prefix="s" %>
<fmt:setBundle basename="messages"/>

<table width="60%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>
		<td class="titulocolumna" align="center" colspan="9"><bean:message key="label.manual.charges.table.title" /></td>
	</tr>
	<tr>
		<td class="titulocolumna" align="center">
			<s:entidad nombreCortoEnt="NEW" permiso="ADMINISTRACION" nombreCortoMod="PROC" nombreCortoSub="VERCARMA">			
				<html:link action="/goToManualChargeAdd.do"><img alt="<bean:message key="label.common.add"/> <bean:message key="label.purchaseorder.name"/>" src="images/nuevo.gif" border="0"></html:link>
			</s:entidad>				
		</td>
		<td class="titulocolumna" align="center"><bean:message key="login.user.id.label"/></td>
		<td class="titulocolumna" align="center"><bean:message key="label.creditline.balance.date"/></td>
		<td class="titulocolumna" align="center"><bean:message key="error.description"/></td>
		<td class="titulocolumna" align="center"><bean:message key="label.creditline.balance.amount"/></td>
		<td class="titulocolumna" align="center"><bean:message key="label.transports.cost.element"/></td>
		<td class="titulocolumna" align="center"><bean:message key="label.customerfuturepurchase.type.shortName"/></td>
		<td class="titulocolumna" align="center">&nbsp;</td>
		<td class="titulocolumna" align="center">&nbsp;</td>			
	</tr>
	<logic:iterate id="row" name="ManualChargesForm"  property="manualChargesList" indexId="int_i" >
		<tr class="<%=((int_i.intValue()%2)==0?"columnadatoPar":"columnadatoNon")%>">
			<td align="center">
				<s:entidad nombreCortoEnt="EDIT" permiso="ADMINISTRACION" nombreCortoMod="PROC" nombreCortoSub="VERCARMA">	
					<html:link action="/goEditManualCharge.do" paramId="manualChargeId" paramName="row" paramProperty="manualChargeId"> <img alt="<bean:message key="common.edit"/> <bean:write name="row" property="description"/>" src="images/modificar.gif" border="0"> </html:link>
				</s:entidad>		
			</td>
			<td align="center"><bean:write name="row" property="userId"/></td>
			<td align="center"><bean:write name="row" property="date"/></td>
			<td align="center"><bean:write name="row" property="description"/></td>
			<td align="center" style="text-align: right;" ><bean:write name="row" property="amount"/></td>
			<td align="center"><bean:write name="row" property="shortName"/></td>
			<td align="center"><bean:write name="row" property="chargeType"/></td>
			<td align="center"><html:link action="/goManualChargeDetail.do" paramId="manualChargeId" paramName="row" paramProperty="manualChargeId"><img alt="<bean:message key="label.manual.charges.detail"/>" src="images/application_view_list.png" border="0"> </html:link> </td>
			<td align="center">
				<s:entidad nombreCortoEnt="DELETE" permiso="ADMINISTRACION" nombreCortoMod="PROC" nombreCortoSub="VERCARMA">
					<a href="#>" onclick="if( confirmDelete('<bean:write name="row" property="description"/>') )location.href='delManualCharges.do?manualChargeId=<bean:write name="row" property="manualChargeId"/>';"><img alt="<bean:message key="common.delete"/>  <bean:write name="row" property="shortName"/>" src="images/eliminar.jpg" border="0"></a>
				</s:entidad>	
			</td>				
		</tr>
	</logic:iterate>
</table>
<br />
<br />
<table width="60%" align="center" cellpadding="2" cellspacing="1" border="0" bgcolor="#CCCCC0">
	<tr>		
		<td align="center" class="titulo_lista_interna">			
			<html:button property="back" onclick="location.href ='showVersionDetail.do'" styleClass="boton"><bean:message key="label.common.back"/></html:button>
		</td>
	</tr>
</table>